<?php

namespace App\Models\Traits;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;

trait UploadsHelper
{
    public function avatarCompile( )
    {
        // 哪些条件才让他提交申诉
        $avatar = \request()->file('image_url')->store('/public/' . date('Y-m-d') . '/complain');
        $avatar = Storage::url($avatar);
        return $avatar;

    }
}